package applications.libraryForm.ui.lib;

import javax.swing.JComponent;
import javax.swing.JTextField;

import org.objectweb.fractal.fraclet.annotations.Component;
import org.objectweb.fractal.fraclet.annotations.Interface;


@Component(provides = {@Interface(name = "jTextFieldItf", signature = org.objectweb.fractal.swing.JTextFieldItf.class),
		@Interface(name = "jTextFieldAttributes", signature = org.objectweb.fractal.swing.JTextFieldAttributes.class), 
		@Interface(name = "uicontainerservice", signature = ontocompo.api.UIContainerService.class), 
		@Interface(name = "ontocompointrospection", signature = ontocompo.api.OntoCompoIntrospection.class)})

public class LibraryFormStudentNameInput extends JTextField implements org.objectweb.fractal.swing.JTextFieldItf, org.objectweb.fractal.swing.JTextFieldAttributes, ontocompo.api.UIContainerService, ontocompo.api.OntoCompoIntrospection 
{
	
	private String uid;
	private org.objectweb.fractal.api.Component c;
	
	
	
	public LibraryFormStudentNameInput() {
		super();
		this.uid = "applications.libraryForm.ui.lib.LibraryFormStudentNameInput";
		System.out.println(this.toString() + " created!!");
	}

	@Override
	public JComponent getComponentItSelf() {
		// TODO Auto-generated method stub
		return this;
	}

	@Override
	public void update(Object arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		this.setText("12345");
		this.setColumns(20);
		this.setMaximumSize(this.getPreferredSize());
		
	}

	@Override
	public org.objectweb.fractal.api.Component getFractalComponent() {
		// TODO Auto-generated method stub
		return this.c;
	}

	@Override
	public String getUid() {
		// TODO Auto-generated method stub
		return this.uid;
	}
	
	public String toString(){
		return "LibraryFormStudentNameInput";
		
	}

	@Override
	public void setFractalComponent(org.objectweb.fractal.api.Component c) {
		// TODO Auto-generated method stub
		this.c = c;
	}

	@Override
	public void setUid(String uid) {
		// TODO Auto-generated method stub
		this.uid = uid;
	}
	
	
	

}
